package com.wanma.recuit.service.impl;

import com.github.pagehelper.PageInfo;
import com.wanma.recuit.mapper.CompanyMapper;
import com.wanma.recuit.pojo.Company;
import com.wanma.recuit.pojo.CompanyUser;
import com.wanma.recuit.service.CompanyInfoService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

@Service
@Transactional(rollbackFor = Exception.class)
public class CompanyInfoServiceImpl implements CompanyInfoService {
    @Resource
    private CompanyMapper companyMapper;
    @Override
    public void insert(Company object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(Company object) {

    }

    @Override
    public Company findById(Integer id) {
        return null;
    }

    @Override
    public List<Company> findAll() {
        return null;
    }

    @Override
    public PageInfo<Company> findPage(int pageNum, int pageSize) {
        return null;
    }
    //根据公司的id查出公司的所有信息
    public  Company  findCompany(CompanyUser companyUser){
        return companyMapper.findCompany(companyUser);
    }
}
